<!doctype html><html lang="zh-Hans-CN"><head>	<meta charset="UTF-8">  	<title>日期转换成字符串的应用</title></head><body>	<h4>日期转化为字符串的应用 .toString|toLocaleString|toLocaleDateString|toLocaleTimeString()</h4>	<hr>	<script>		let MyDate=new Date();		let msg="";		msg+="当前日期字符串toString(): "+MyDate.toString()+"<br>";        msg+="本地日期字符串toLocaleString(): "+MyDate.toLocaleString()+"<br>";        msg+="本地日期字符串toLocaleDateString: "+MyDate.toLocaleDateString()+"<br>";        msg+="本地日期字符串toLocaleTimeString(): "+MyDate.toLocaleTimeString()+"<br>";		document.write(msg);	</script>   	<hr>	<p> <script>document.write(document.lastModified);</script> <a href="index.html">返回本章目录</a></p></body></html>